﻿<%@ Register Tagprefix="SharePoint" Namespace="Microsoft.SharePoint.WebControls" Assembly="Microsoft.SharePoint, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Register Tagprefix="Utilities" Namespace="Microsoft.SharePoint.Utilities" Assembly="Microsoft.SharePoint, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Register Tagprefix="asp" Namespace="System.Web.UI" Assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" %>
<%@ Register TagPrefix="wssuc" TagName="InputFormSection" src="~/_controltemplates/InputFormSection.ascx" %>
<%@ Register TagPrefix="wssuc" TagName="InputFormControl" src="~/_controltemplates/InputFormControl.ascx" %>
<%@ Register TagPrefix="wssuc" TagName="ButtonSection" src="~/_controltemplates/ButtonSection.ascx" %>
<%@ Import Namespace="Microsoft.SharePoint" %>
<%@ Assembly Name="Microsoft.Web.CommandUI, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Register Tagprefix="WebPartPages" Namespace="Microsoft.SharePoint.WebPartPages" Assembly="Microsoft.SharePoint, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Page Language="C#" Inherits="Microsoft.SharePoint.WebPartPages.WebPartPage" MasterPageFile="~masterurl/default.master" %>

<asp:Content ID="PageHead" ContentPlaceHolderID="PlaceHolderAdditionalPageHead" runat="server">
<SharePoint:CSSRegistration name="<% $SPUrl:~SiteCollection/Lists/SPAdvancedSearchFiles/css/redmond/jquery-ui-1.8.10.custom.css %>" runat="server"/>
<SharePoint:ScriptLink ID="spjs" Name="sp.js" LoadAfterUI="true" Localizable="false" runat="server" />
</asp:Content>

<asp:Content ID="Main" ContentPlaceHolderID="PlaceHolderMain" runat="server">

<script type="text/javascript">
// <![CDATA[
var basePath = "<SharePoint:EncodedLiteral runat="server" text="<% $SPUrl:~SiteCollection/Lists/SPAdvancedSearchFiles/ %>" EncodeMethod="EcmaScriptStringLiteralEncode" />";
document.write('<script type="text/javascript" src="' + basePath + 'jquery-1.4.4.min.js"></' + 'script>');
document.write('<script type="text/javascript" src="' + basePath + 'jquery-ui-1.8.10.custom.min.js"></' + 'script>');
document.write('<script type="text/javascript" src="' + basePath + 'jquery-datetimepicker.js"></' + 'script>');
document.write('<script type="text/javascript" src="' + basePath + 'AdvancedSearch.js"></' + 'script>');
// ]]>
</script>
<style type="text/css">
h3#advanced-search-header { margin: 12px 8px; }
div#advanced-search { margin: 8px; }
div#advanced-search label.as-label { display: block; margin-bottom: 2px; }
div.cb-ui-row { margin: 8px 0; }
div.as-result { margin: 16px 0; }
table.as-grid { border-collapse: collapse; }
table.as-grid th { padding: 4px; }
table.as-grid td { padding: 4px; }
table.as-grid th.as-cell-pager { text-align: left; }
img.as-pager-first, img.as-pager-prev, img.as-pager-next { margin-right: 8px; }
.as-center { text-align: center; }
.as-right { text-align: right; }
</style>
<WebPartPages:SPUserCodeWebPart runat="server" Title="AdvancedSearch" AssemblyFullName="$SharePoint.Project.AssemblyFullName$" SolutionId="dc02e185-293d-49bf-b717-88197edb98e2" ID="AdvancedSearch" TypeFullName="Cybozu.SharePoint.AdvancedSearchSB.AdvancedSearchWebPart.AdvancedSearchWebPart"></WebPartPages:SPUserCodeWebPart>
<script type="text/javascript">
// <![CDATA[
var coreResources = {
    Yes: "<SharePoint:EncodedLiteral runat="server" Text="<% $Resources:wss,fld_yes %>" EncodeMethod="EcmaScriptStringLiteralEncode" />",
    No: "<SharePoint:EncodedLiteral runat="server" Text="<% $Resources:wss,fld_no %>" EncodeMethod="EcmaScriptStringLiteralEncode" />"
};
$(document).ready(function () {
    $("#advanced-search").spAdvancedSearch();
});
// ]]>
</script>
<h3 id="advanced-search-header">SP List Advanced Search</h3>
<div id="advanced-search"></div>

</asp:Content>

<asp:Content ID="PageTitle" ContentPlaceHolderID="PlaceHolderPageTitle" runat="server">
    <SharePoint:FormattedStringWithListType runat="server" String="Advanced Search" LowerCase="false" />
</asp:Content>

<asp:Content ID="PageTitleInTitleArea" ContentPlaceHolderID="PlaceHolderPageTitleInTitleArea" runat="server" >
	<SharePoint:ListProperty Property="TitleBreadcrumb" runat="server"/>
    <SharePoint:ClusteredDirectionalSeparatorArrow runat="server" />
    <SharePoint:EncodedLiteral runat="server" Text="Advanced Search" EncodeMethod="HtmlEncode" />
</asp:Content>
